<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.springframework.org/schema/data/jaxb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>淘宝购物车代码_js代码网</title>
<meta name="keywords" content="淘宝购物车代码,购物车代码" />
<meta name="description" content="js购物车代码_淘宝加入购物车代码_淘宝购物车代码。" />
<link rel="stylesheet" th:href="@{/static/cart/css/style.css}"/>
<script type="text/javascript" th:src="@{/static/cart/js/demo.js}"></script>
<script>
	function change(num,gid) {
		//获得
		$.ajax({
			url:"http://localhost:9000/SpringbootDemo/user/updateNum",
			type:"post",
			data:"num="+num+"&and;gid="+gid,
			success:function (rtn) {
				//可以不做
			},
			error:function () {

			}
		});
	}
</script>
</head>
<body>

<div class="catbox">

	<table id="cartTable">
		<thead>
			<tr>
				<th><label><input class="check-all check" type="checkbox"/>&nbsp;全选</label></th>
				<th>商品</th>
				<th>单价</th>
				<th>数量</th>
				<th>小计</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr th:each="carGood:${car}">
				<td class="checkbox"><input class="check-one check" type="checkbox"/></td>
				<td class="goods"><img th:src="@{/static/daqi/images}+${carGood.goods.pic}"  alt=""/>
					<span th:text="${carGood.goods.name}"></span></td>
				<td class="price" th:text="${carGood.goods.price}"></td>
				<td class="count"><span class="reduce"></span>
					<input class="count-input" type="text" th:value="${carGood.num}"id="num"/><span class="add">+</span></td>
				<td class="subtotal" th:text="${#numbers.formatDecimal(carGood.sumPrice,1,'COMMA',2,'POINT')}"></td>
				<td class="operation"><span class="delete">删除</span></td>
			</tr>

		</tbody>
	</table>
	
	<div class="foot" id="foot">
		<label class="fl select-all"><input type="checkbox" class="check-all check"/>&nbsp;全选</label>
		<a class="fl delete" id="deleteAll" href="javascript:;">删除</a>
		<div class="fr closing">结 算</div>
		<div class="fr total">合计：￥<span id="priceTotal">0.00</span></div>
		<div class="fr selected" id="selected">已选商品<span id="selectedTotal">0</span>件<span class="arrow up">︽</span><span class="arrow down">︾</span></div>
		<div class="selected-view">
			<div id="selectedViewList" class="clearfix">
				<div><img th:src="@{/static/cart/images/1.jpg}"><span>取消选择</span></div>
			</div>
			<span class="arrow">◆<span>◆</span></span>
		</div>
	</div>

</div>

</body>
</html>